package com.itheima.web.controller;

import com.itheima.service.store.CatalogService;
import com.itheima.service.store.CompanyService;
import com.itheima.service.store.CourseService;
import com.itheima.service.store.Impl.CatalogServiceImpl;
import com.itheima.service.store.Impl.CompanyServiceImpl;
import com.itheima.service.store.Impl.CourseServiceImpl;
import com.itheima.service.store.Impl.QuestionServiceImpl;
import com.itheima.service.store.QuestionService;
import com.itheima.service.system.DeptService;
import com.itheima.service.system.Impl.DeptServiceImpl;
import com.itheima.service.system.Impl.UserServiceImpl;
import com.itheima.service.system.UserService;
import com.itheima.web.controller.system.UserServlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

public class BaseServlet extends HttpServlet {
    protected CompanyService companyService;
    protected DeptService  deptService;
    protected UserService userService;
    protected CourseService courseService;
    protected CatalogService   catalogService;
    protected QuestionService questionService;
    @Override
    public void init() throws ServletException {
         companyService=new CompanyServiceImpl();
         deptService= new DeptServiceImpl();
         userService=new UserServiceImpl();
         courseService=new CourseServiceImpl();
         catalogService=new CatalogServiceImpl();
         questionService=new QuestionServiceImpl();
    }
}
